﻿<%@ Page Title="" Language="C#" Inherits="System.Web.Mvc.ViewPage<NTQOnlineExamFrontend.Models.ExaminationResultViewModel>" %>

<div class="modal-header">
    <button type="button" class="close" data-dismiss="modal">×</button>
    <h3>Examination Result</h3>
</div>
<div class="modal-body">
    <p>Your final score: </p>
    <div id="progressbar"></div>

    <div class="progress">
        <div class="bar" style="width: <%= Model.TotalScore %>%;"><span class="progressScore"><%= Model.TotalScore %> / 100 </span></div>
    </div>
</div>
<div class="modal-footer">
    <a href="#" class="btn" onclick="CloseExam();">Close</a>
    <%: Html.ActionLink("Review answers", "ExaminationResultDetail", "Member", new {examId = Model.ExamId,token = Model.TokenToAccessResultPage},new {@class="btn btn-red"}) %>
</div>
<script type="text/javascript">
    function CloseExam() {
        window.close();
    }
</script>
